<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'redirect.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	</head>
<body>
	<c:out value="欢迎测试你的第一个使用到JSTL 的网页" />
	<h1>你使用的浏览器是：</h1>
	<c:out value="${header['User-Agent']}" />
	<c:set var="a" value="David O'Davies" />
	<c:out value="David O'Davies" escapeXml="true" />
</body>
</html>